package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(TrackInfoVo trackInfoVo);

    Page<TrackListVo> findUserTrackPage(Integer page, Integer limit, TrackInfoQuery trackInfoQuery);

    void updateTrackInfo(Long trackId, TrackInfoVo trackInfoVo);

    void removeTrackInfo(Long trackId);

    Page<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Integer page, Integer limit);
}
